package com.ruoyi.pm.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接口参数配置对象 exc_port_config
 *
 * @author ruoyi
 * @date 2022-01-20
 */
public class ExcPortConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long originalId;

    /**
     * exc_port表主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long portId;

    /**
     * 父级集合
     */
    private String ancestors;

    /**
     * 父节点的ID，与下面的column_type对应，如果是1那么就是0
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 参数类型，1:保司入参;2:保司出参 3：标准出参  4：标准订单json修改参数
     */
    private String type;

    /**
     * 与中介核心约定的字段
     */
    private String field;

    /**
     * 我们与核心约定平台与核心之间交互数据格式为json，所以 1.值  2:map  3:list
     */
    private String fieldType;

    /**
     * 默认值，一旦传输过来的数据为空，可以用这个值进行填充
     */
    private String defaultValue;

    /**
     * 中台字典表，该字段有值就进行字典值转换
     */
    private String dictCode;
    /**
     * 字段处理方法
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long mainId;
    /**
     * 标准报文映射公式
     */
    private String mappingFormula;
    private Integer orderNum;

    private String jsonData;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOriginalId() {
        return originalId;
    }

    public void setOriginalId(Long originalId) {
        this.originalId = originalId;
    }

    public Long getPortId() {
        return portId;
    }

    public void setPortId(Long portId) {
        this.portId = portId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public String getMappingFormula() {
        return mappingFormula;
    }

    public void setMappingFormula(String mappingFormula) {
        this.mappingFormula = mappingFormula;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getJsonData() {
        return jsonData;
    }

    public void setJsonData(String jsonData) {
        this.jsonData = jsonData;
    }

}
